<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 形参
      function test(a, b) {
        var drink = a === 1 ? '可乐' : '雪碧'
        var ciken = b === 2 ? '鸡米花' : '鸡柳'
        console.log('我是test', drink, ciken)
      }
      // test() // undefined
      test(1, 2) // 可乐,鸡米花
    </script>
  </body>
</html>
